Optimal. Leaf size=232 \[ \frac {d x \sqrt {a+b x^2}}{c \sqrt {c+d x^2}}-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x}-\frac {\sqrt {d} \sqrt {a+b x^2} E\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}} \sqrt {c+d x^2}}+\frac {b \sqrt {c} \sqrt {a+b x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}} \sqrt {c+d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.10, antiderivative size = 232, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.231, Rules used = {486, 21, 433,
429, 506, 422} \begin {gather*} \frac {b \sqrt {c} \sqrt {a+b x^2} F\left (\text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {c+d x^2} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}}}-\frac {\sqrt {d} \sqrt {a+b x^2} E\left (\text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c} \sqrt {c+d x^2} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}}}+\frac {d x \sqrt {a+b x^2}}{c \sqrt {c+d x^2}}-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 21
Rule 422
Rule 429
Rule 433
Rule 486
Rule 506
Rubi steps
\begin {align*} \int \frac {\sqrt {a+b x^2}}{x^2 \sqrt {c+d x^2}} \, dx &=-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x}+\frac {\int \frac {b c+b d x^2}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx}{c}\\ &=-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x}+\frac {b \int \frac {\sqrt {c+d x^2}}{\sqrt {a+b x^2}} \, dx}{c}\\ &=-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x}+b \int \frac {1}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx+\frac {(b d) \int \frac {x^2}{\sqrt {a+b x^2} \sqrt {c+d x^2}} \, dx}{c}\\ &=\frac {d x \sqrt {a+b x^2}}{c \sqrt {c+d x^2}}-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x}+\frac {b \sqrt {c} \sqrt {a+b x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}} \sqrt {c+d x^2}}-d \int \frac {\sqrt {a+b x^2}}{\left (c+d x^2\right )^{3/2}} \, dx\\ &=\frac {d x \sqrt {a+b x^2}}{c \sqrt {c+d x^2}}-\frac {\sqrt {a+b x^2} \sqrt {c+d x^2}}{c x}-\frac {\sqrt {d} \sqrt {a+b x^2} E\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{\sqrt {c} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}} \sqrt {c+d x^2}}+\frac {b \sqrt {c} \sqrt {a+b x^2} F\left (\tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )|1-\frac {b c}{a d}\right )}{a \sqrt {d} \sqrt {\frac {c \left (a+b x^2\right )}{a \left (c+d x^2\right )}} \sqrt {c+d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.18, size = 111, normalized size = 0.48 \begin {gather*} \frac {-\left (\left (a+b x^2\right ) \left (c+d x^2\right )\right )+\frac {b c x \sqrt {1+\frac {b x^2}{a}} \sqrt {1+\frac {d x^2}{c}} E\left (\sin ^{-1}\left (\sqrt {-\frac {b}{a}} x\right )|\frac {a d}{b c}\right )}{\sqrt {-\frac {b}{a}}}}{c x \sqrt {a+b x^2} \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.13, size = 168, normalized size = 0.72
method | result | size |
default | \(\frac {\sqrt {b \,x^{2}+a}\, \sqrt {d \,x^{2}+c}\, \left (-\sqrt {-\frac {b}{a}}\, b d \,x^{4}+b c \sqrt {\frac {b \,x^{2}+a}{a}}\, \sqrt {\frac {d \,x^{2}+c}{c}}\, x \EllipticE \left (x \sqrt {-\frac {b}{a}}, \sqrt {\frac {a d}{b c}}\right )-\sqrt {-\frac {b}{a}}\, a d \,x^{2}-\sqrt {-\frac {b}{a}}\, b c \,x^{2}-\sqrt {-\frac {b}{a}}\, a c \right )}{\left (b d \,x^{4}+a d \,x^{2}+c \,x^{2} b +a c \right ) c \sqrt {-\frac {b}{a}}\, x}\) | \(168\) |
risch | \(-\frac {\sqrt {b \,x^{2}+a}\, \sqrt {d \,x^{2}+c}}{c x}+\frac {b \left (\frac {c \sqrt {1+\frac {b \,x^{2}}{a}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \EllipticF \left (x \sqrt {-\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )}{\sqrt {-\frac {b}{a}}\, \sqrt {b d \,x^{4}+a d \,x^{2}+c \,x^{2} b +a c}}-\frac {c \sqrt {1+\frac {b \,x^{2}}{a}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \left (\EllipticF \left (x \sqrt {-\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )-\EllipticE \left (x \sqrt {-\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )\right )}{\sqrt {-\frac {b}{a}}\, \sqrt {b d \,x^{4}+a d \,x^{2}+c \,x^{2} b +a c}}\right ) \sqrt {\left (b \,x^{2}+a \right ) \left (d \,x^{2}+c \right )}}{c \sqrt {b \,x^{2}+a}\, \sqrt {d \,x^{2}+c}}\) | \(276\) |
elliptic | \(\frac {\sqrt {\left (b \,x^{2}+a \right ) \left (d \,x^{2}+c \right )}\, \left (-\frac {\sqrt {b d \,x^{4}+a d \,x^{2}+c \,x^{2} b +a c}}{c x}+\frac {b \sqrt {1+\frac {b \,x^{2}}{a}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \EllipticF \left (x \sqrt {-\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )}{\sqrt {-\frac {b}{a}}\, \sqrt {b d \,x^{4}+a d \,x^{2}+c \,x^{2} b +a c}}-\frac {b \sqrt {1+\frac {b \,x^{2}}{a}}\, \sqrt {1+\frac {d \,x^{2}}{c}}\, \left (\EllipticF \left (x \sqrt {-\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )-\EllipticE \left (x \sqrt {-\frac {b}{a}}, \sqrt {-1+\frac {a d +b c}{c b}}\right )\right )}{\sqrt {-\frac {b}{a}}\, \sqrt {b d \,x^{4}+a d \,x^{2}+c \,x^{2} b +a c}}\right )}{\sqrt {b \,x^{2}+a}\, \sqrt {d \,x^{2}+c}}\) | \(277\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + b x^{2}}}{x^{2} \sqrt {c + d x^{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {b\,x^2+a}}{x^2\,\sqrt {d\,x^2+c}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________